const zz = document.querySelector('.zz');
zz.addEventListener('click', function () {
    toastr.success('彭奕安')
})


const cc = document.querySelector('.cc');
cc.addEventListener('click', function () {
    toastr.success('姚鑫涛')
})

const dd = document.querySelector('.dd');
dd.addEventListener('click', function () {
    toastr.success('张旭东')
})


const ee = document.querySelector('.ee');
ee.addEventListener('click', function (e) {
    toastr.success('余家凯')
})

const ctp = document.querySelector('.ctp');
ctp.addEventListener('click', function (e) {

    toastr.success('陈天倍')
})

const gg = document.querySelector('.gg');
gg.addEventListener('click', function (e) {

    toastr.success('刘庆邦')
})
toastr.options = {
    closeButton: true, // 显示 关闭按钮
    // debug: false,
    positionClass: 'toast-top-center', // 提示框显示的位置
    // onclick: null,
    // showDuration: '300',
    // hideDuration: '1000',
    // timeOut: '5000',
    // extendedTimeOut: '1000',
    // showEasing: 'swing',
    // hideEasing: 'linear',
    // showMethod: 'fadeIn',
    // hideMethod: 'fadeOut',
  };
const h1 = document.querySelector('h1');
let b=1
let a=1
setInterval(() => {
    b++
    a++
    if (b===254) {      
        a=1
    }
    if(a===255){
        b=1
    }
    h1.style.color= `rgb(${a},${b},0)`
}, 10);


